<template>
  <div :style='{color:color}'>
    11111111{{name}}---{{$root.type}}---{{dv.age}}

  </div>
</template>
<script>
// @ is an alias to /src
export default {
  props: ["q", "w"],
  data() {
    return {
      name: "child1",
      color: "red",
    };
  },
  methods: {
    c1() {
      console.log(this);
    },
    changeColor(col) {
      console.log(6666, col);
      this.color = col;
    },
  },
  created() {
    this.dv.$on("qqqq", this.changeColor);
  },
  components: {},
};
</script>
<style lang="less">
</style>